import request from '@/utils/request'
const prefixUrl = process.env.VUE_APP_DATA_API
/**
 * @description 添加处理结果
 */
export function addResult (data) {
  return request({
    baseURL: prefixUrl,
    url: '/api/v1/res/add',
    method: 'post',
    data
  })
}

/**
 * @description 修改处理结果
 */
export function modifyResult (data) {
  return request({
    baseURL: prefixUrl,
    url: '/api/v1/res/modify',
    method: 'put',
    data
  })
}

/**
 * @description 删除处理结果
 */
export function delResult (data) {
  return request({
    baseURL: prefixUrl,
    url: '/api/v1/res',
    method: 'delete',
    data
  })
}

/**
 * @description 处理结果列表
 */
export function getResultList (params) {
  return request({
    baseURL: prefixUrl,
    url: '/api/v1/res/list',
    method: 'get',
    params
  })
}
